package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.base.DmImage;
import com.hdax.dm.mappers.DmImagesMapper;
import com.hdax.dm.service.DmImageService;
import org.springframework.stereotype.Service;

@Service
public class DmImageServiceImpl extends ServiceImpl<DmImagesMapper, DmImage> implements DmImageService {
    @Override
    public DmImage selImageByItemId(Long itemId) {
//        QueryWrapper<DmImage> wrapper=new QueryWrapper<>();
//        wrapper.eq("type",2);
//        wrapper.eq("category",1);
//        wrapper.eq("targetId",itemId);
        DmImage dmImage = baseMapper.selImageByitemId(itemId);
        return dmImage;
    }
}
